﻿//先添加引用//service.cctalk.com/api/ctcalls/frame_calluser.js
//<script type="text/javascript" src="/app/js/cctalk_frame_calluser.js"></script>

var cctalk = {
    addCCtalkOnLine: function () {
        var list = [];
        $(".ct_statu:empty").each(function () {
            list.push($(this).data("uid"));
        });
        ctcalluser.init({ userID: list, IP: "", element: $(".ct_statu"), source: "deskmate" });
    },
    isOnLine: function (uid, callback) {
        ctcalluser.checkUserIsOnLine(uid, callback);
    }
}

$(function () {
    cctalk.addCCtalkOnLine();
});